package Model.Event
{
	import flash.events.Event;
	
	public class EditPostEvent extends Event
	{
		public static const EDIT:String = "editPost";
		public var editedText:String;
		public var postId:Number;
		public var postChanged:Boolean;
		
		public function EditPostEvent(type:String, postId:Number, editedText:String, postChanged:Boolean, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.editedText = editedText;
			this.postId = postId;
			this.postChanged = postChanged;
			
			
		}
		
		override public function clone():Event 
		{
			return new EditPostEvent(EDIT, postId, editedText, postChanged);
		} 
		
	}
}